Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medium-level API: Add AudioAccessor with corresponding functions. #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Levitanus
Copy link
Contributor

I'm sorry. This is a sort of duplicate, but, I hope, ready to push.

I've found the plan of making all the medium-level quite a big task, that I can't handle. Especially, in terms of psychical comfort ;)

So, since I (hope, not alone) really need to use ReaScript from rust somehow, I've built some sort of high-level on top of reaper-low (and a bit of reaper-medium). Until you introduce your rx architecture, I would like to consider this as a solution.

But, at first, it requires this particular fix of reintroducing AudioAccessor in low- and mid-levels. And, at the second, I would like to publish on crates.io, which requires all dependencies be there two. Also, when I first met reaper-rs, I also was confused a bit, until used GitHub dependency. May You also make a release on crates.io?

I'll return to my pulls as soon as possible. Hope to polish that, which already sketched until the end of the year.

Changed

AudioAccessor in ptr_wrappers.rs
create_track_audio_accessor
create_take_audio_accessor
destroy_audio_accessor
audio_accessor_state_changed
audio_accessor_update
audio_accessor_validate_state
get_audio_accessor_end_time
get_audio_accessor_start_time
get_audio_accessor_samples
GetAudioAccessorHash is not wrapped, as it is deprecated. Low-level API: Fixed AudioAccessor to be ReaperPointer

applied cargo fmt

`AudioAccessor` in ptr_wrappers.rs
`create_track_audio_accessor`
`create_take_audio_accessor`
`destroy_audio_accessor`
`audio_accessor_state_changed`
`audio_accessor_update`
`audio_accessor_validate_state`
`get_audio_accessor_end_time`
`get_audio_accessor_start_time`
`get_audio_accessor_samples`
`GetAudioAccessorHash` is not wrapped, as it is deprecated.
Low-level API: Fixed AudioAccessor to be ReaperPointer


applied cargo fmt


restricted to MainThreadOnly
@Levitanus
Copy link
Contributor Author

Oh, by the way! I've found, that exiting because of the signal is, probably, normal way of exiting in Linux. So, maybe, there is a point to return Ok(()) in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant